package com.bafa.front.admin;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bafa.exceptions.ErrorException;
import com.bafa.objects.season.Season;
import com.bafa.services.RetrieveServices;

public class DisplayEditSeasonServlet extends AdminServlet {

	@Override
	public void doAdminEvent(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ErrorException {
		Season season = RetrieveServices.getSeason(request.getParameter("SeasonId"));
		request.setAttribute("SEASON",season);
		url="displayeditseason.jsp";
	}
}
